<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>getPaymentMethods</title>
    <link href="../../../styles/style.css" rel="Stylesheet">
    <script type="text/javascript" src="../../../scripts/navigationLoader.js" async="async"></script>
    <script type="text/javascript" src="../../../scripts/platformContentHandler.js" async="async"></script>
    <script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script>
    <script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script>
    <link href="../../../styles/jetbrains-mono.css" rel="Stylesheet">
    <script>var pathToRoot = "../../../";</script>
  </head>
  <body>
    <div id="container">
      <div id="leftColumn">
        <div id="logo"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="searchBar"></div>
        <script type="text/javascript" src="../../../scripts/pages.js"></script>
        <script type="text/javascript" src="../../../scripts/main.js"></script>
        <div id="content" pageIds="com.stripe.android/CustomerSession/getPaymentMethods/#com.stripe.android.model.PaymentMethod.Type#kotlin.Int?#kotlin.String?#kotlin.String?#com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener/PointingToDeclaration/">
          <div class="breadcrumbs">//<a href="../../index.html">stripe</a>/<a href="../index.html">com.stripe.android</a>/<a href="index.html">CustomerSession</a>/<a href="get-payment-methods.html">getPaymentMethods</a></div>
          <div class="cover ">
            <h1 class="cover"><a data-name="getpaymentmethods"></a>getPaymentMethods</h1>
          </div>
<div class="divergent-group" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="brief-with-platform-tags"><div class="inner-brief-with-platform-tags"><div class="block"><div class="block">Retrieves all of the customer's PaymentMethod objects, filtered by a <a href="../../com.stripe.android.model/-payment-method/-type/index.html">PaymentMethod.Type</a>.See <a href="https://stripe.com/docs/api/payment_methods/list">List a Customer's PaymentMethods</a></div></div><h2 class=""><a data-name="parameters"></a>Parameters</h2><div data-togglable="Parameters"><div class="platform-hinted WithExtraAttributes" data-platform-hinted="data-platform-hinted" data-togglable="Parameters"><div class="content sourceset-depenent-content" data-active="" data-togglable=":stripe/main"><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><a data-name="com.stripe.android/CustomerSession/getPaymentMethods/#com.stripe.android.model.PaymentMethod.Type#kotlin.Int?#kotlin.String?#kotlin.String?#com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>endingBefore</div><div class="title"><div data-togglable="Parameters">Optional. A cursor for use in pagination. <code>ending_before</code> is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with <code>obj_bar</code>, your subsequent call can include <code>ending_before=obj_bar</code> in order to fetch the previous page of the list.</div></div></div></div><a data-name="com.stripe.android/CustomerSession/getPaymentMethods/#com.stripe.android.model.PaymentMethod.Type#kotlin.Int?#kotlin.String?#kotlin.String?#com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>limit</div><div class="title"><div data-togglable="Parameters">Optional. A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.</div></div></div></div><a data-name="com.stripe.android/CustomerSession/getPaymentMethods/#com.stripe.android.model.PaymentMethod.Type#kotlin.Int?#kotlin.String?#kotlin.String?#com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>listener</div><div class="title"><div data-togglable="Parameters">a <a href="-payment-method-retrieval-listener/index.html">PaymentMethodRetrievalListener</a> called when the API call completes with a list of <a href="../../com.stripe.android.model/-payment-method/index.html">PaymentMethod</a> objects</div></div></div></div><a data-name="com.stripe.android/CustomerSession/getPaymentMethods/#com.stripe.android.model.PaymentMethod.Type#kotlin.Int?#kotlin.String?#kotlin.String?#com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>paymentMethodType</div><div class="title"><div data-togglable="Parameters">the <a href="../../com.stripe.android.model/-payment-method/-type/index.html">PaymentMethod.Type</a> to filter by</div></div></div></div><a data-name="com.stripe.android/CustomerSession/getPaymentMethods/#com.stripe.android.model.PaymentMethod.Type#kotlin.Int?#kotlin.String?#kotlin.String?#com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>startingAfter</div><div class="title"><div data-togglable="Parameters">Optional. A cursor for use in pagination. <code>starting_after</code> is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with <code>obj_foo</code>, your subsequent call can include <code>starting_after=obj_foo</code> in order to fetch the next page of the list.</div></div></div></div></div></div></div></div></div></div>
<span class="pull-right"></span></div>

  <div class="main-subrow">
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":stripe/main"><div class="symbol "><div class="symbol monospace"><div class="block"><div class="block">@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html">JvmOverloads</a>()</div></div>fun <a href="get-payment-methods.html">getPaymentMethods</a>(paymentMethodType: <a href="../../com.stripe.android.model/-payment-method/-type/index.html">PaymentMethod.Type</a>, limit: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?, endingBefore: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, startingAfter: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, listener: <a href="-payment-methods-retrieval-listener/index.html">CustomerSession.PaymentMethodsRetrievalListener</a>)<span class="top-right-position"><span class="copy-icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path fill-rule="evenodd" clip-rule="evenodd" d="M5 4H15V16H5V4ZM17 7H19V18V20H17H8V18H17V7Z" fill="black"/>
                       </svg></span><div class="copy-popup-wrapper popup-to-left"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M18 9C18 14 14 18 9 18C4 18 0 14 0 9C0 4 4 0 9 0C14 0 18 4 18 9ZM14.2 6.2L12.8 4.8L7.5 10.1L5.3 7.8L3.8 9.2L7.5 13L14.2 6.2Z" fill="#4DBB5F"/>
</svg><span>Content copied to clipboard</span></div></span></div></div></div></div>
  </div>
</div>
<div class="divergent-group" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="brief-with-platform-tags"><div class="inner-brief-with-platform-tags"></div>
<span class="pull-right"></span></div>

  <div class="main-subrow">
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":stripe/main"><div class="symbol "><div class="symbol monospace">fun <a href="get-payment-methods.html">getPaymentMethods</a>(paymentMethodType: <a href="../../com.stripe.android.model/-payment-method/-type/index.html">PaymentMethod.Type</a>, listener: <a href="-payment-methods-retrieval-listener/index.html">CustomerSession.PaymentMethodsRetrievalListener</a>)<span class="top-right-position"><span class="copy-icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path fill-rule="evenodd" clip-rule="evenodd" d="M5 4H15V16H5V4ZM17 7H19V18V20H17H8V18H17V7Z" fill="black"/>
                       </svg></span><div class="copy-popup-wrapper popup-to-left"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M18 9C18 14 14 18 9 18C4 18 0 14 0 9C0 4 4 0 9 0C14 0 18 4 18 9ZM14.2 6.2L12.8 4.8L7.5 10.1L5.3 7.8L3.8 9.2L7.5 13L14.2 6.2Z" fill="#4DBB5F"/>
</svg><span>Content copied to clipboard</span></div></span></div></div></div></div>
  </div>
</div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#container"><svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M11.3337 9.66683H0.666992L6.00033 3.66683L11.3337 9.66683Z" fill="black"/>
    <path d="M0.666992 0.333496H11.3337V1.66683H0.666992V0.333496Z" fill="black"/>
</svg></a></span><span>© 2020 Copyright</span><span class="pull-right"><span>Sponsored and developed by dokka</span><a href="https://github.com/Kotlin/dokka"><span class="padded-icon"><svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M8 0H2.3949L4.84076 2.44586L0 7.28662L0.713376 8L5.55414 3.15924L8 5.6051V0Z" fill="black"/>
</svg></span></a></span></div>
      </div>
    </div>
  </body>
</html>

